#include <ClanLib/src/API/core.h>
#include <ServerEngine/Engine.h>

int main(int argc, char *argv[])
{
	try
	{
		TSE::Engine::ref().Main(argc, argv);
	}
	catch (CL_Exception &e)
	{
		CL_Console::write_line("Unhandled Exception: %1", e.get_message_and_stack_trace());
		system("pause");
		return EXIT_FAILURE;
	}
	system("pause");
	return EXIT_SUCCESS;
}
